
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 订单分账
 *
 * @author
 * @date 2023-05-11 11:43:49
 */
@Data
@TableName("order_profit_sharing")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单分账")
public class OrderProfitSharing extends Model<OrderProfitSharing> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * 店铺Id
     */
    @NotNull(message = "店铺Id不能为空")
    @Schema(description = "店铺Id")
    private String shopId;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @NotNull(message = "逻辑删除标记（0：显示；1：隐藏）不能为空")
    @Schema(description = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    @NotNull(message = "最后更新时间不能为空")
    @Schema(description = "最后更新时间")
    private LocalDateTime updateTime;
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    @Schema(description = "订单id")
    private String orderId;
    /**
     * 状态
     */
    @NotNull(message = "状态不能为空")
    @Schema(description = "状态")
    private String status;
    /**
     * 类型：1微信支付；2支付宝
     */
    @NotNull(message = "类型：1微信支付；2支付宝不能为空")
    @Schema(description = "类型：1微信支付；2支付宝")
    private String paymentType;
    /**
     * 分账接收方类型
     */
    @NotNull(message = "分账接收方类型不能为空")
    @Schema(description = "分账接收方类型")
    private String dividedReceiptType;
    /**
     * 分账接收方账号
     */
    @NotNull(message = "分账接收方账号不能为空")
    @Schema(description = "分账接收方账号")
    private String dividedReceiptAccount;
    /**
     * 分账接收方名称
     */
    @NotNull(message = "分账接收方名称不能为空")
    @Schema(description = "分账接收方名称")
    private String dividedReceiptName;
    /**
     * 分账金额
     */
    @NotNull(message = "分账金额不能为空")
    @Schema(description = "分账金额")
    private BigDecimal amount;
    /**
     * 分账描述
     */
    @Schema(description = "分账描述")
    private String description;

}
